from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from . import views


urlpatterns = [
    url(r"^spits/$", views.SpitListView.as_view()),
    url(r"^spits/(?P<pk>\d+)/$", views.SpitDetailView.as_view()),
    url(r"^spits/release/$", views.SpitReleaseView.as_view()),
    url(r"^spits/(?P<pk>\d+)/comments/$", views.SpitCommentView.as_view()),

]

# router = DefaultRouter()
# router.register(r"spits", views.SpitListDetailViewSet, base_name="spits")
# urlpatterns += router.urls
